<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of logout
 *
 * @author Administrator
 */
class logout extends CI_Controller {

  //put your code here

  public function __construct() {
    parent::__construct();
  }

  public function index() {
    unset_userdata('end_user_user_id');
    unset_userdata('end_user_role');
    unset_userdata('end_user_display_name');
    unset_userdata('end_user_id');
    unset_userdata('end_user_avatar');
    unset_userdata('country_id');
    unset_userdata('state_id');
    unset_userdata('city_id');
    unset_userdata('subcrised');
    redirect('');
  }

}